package com.apes.fn.server.pickUpCar.repository;

import com.apes.fn.server.pickUpCar.model.KeyNumber;
import com.apes.framework.jpa.repository.CustomRepository;
import com.apes.scm.masterdata.frame.model.Dept;

import java.util.List;

/**
 * @Classname KeyNumberRepository
 * @Description 获取钥匙号
 * @Date 2020/1/15 18:50
 * @Created by wsj
 */
public interface KeyNumberRepository extends CustomRepository<KeyNumber,String> {
    List<KeyNumber> findByDeptAndValid(Dept dept, boolean valid);

    KeyNumber findByDeptAndKeyCard(Dept dept, int keyCard);
}
